-
Notifications
You must be signed in to change notification settings - Fork 13.8k
ggml-cpu : prevent kleidiai build/install targets #17257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| URL_HASH MD5=${KLEIDIAI_ARCHIVE_MD5}) | ||
| URL_HASH MD5=${KLEIDIAI_ARCHIVE_MD5} | ||
| SOURCE_SUBDIR pathThatDoesNotExist # Prevent all targets to be executed | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using SOURCE_SUBDIR pathThatDoesNotExist to suppress target creation could be problematic. If CMake validates the path or the KleidiAI project layout changes, this could fail at configure time. An alternative would be to use FetchContent_Populate() instead of FetchContent_MakeAvailable(), and then not add the KleidiAI subdirectory at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chaxu01 Thanks for your clean review.
At first I consider FetchContent_Populate which do the same fix but cmake generates deprecation warning about it. Then I found the SOURCE_SUBDIR bypass.
Still your concern is valid, I've updated this commit to use FetchContent_Populate, PTAL
a02af4c to
2664317
Compare
2664317 to
be75572
Compare
|
Since it seems that |
* currently cmake install targets of kleidiai generate error * set EXCLUDE_FROM_ALL in `FetchContent_MakeAvailable` for cmake 3.28+ * use `FetchContent_Populate` for cmake version less than 3.28 * note that `FetchContent_Populate` is deprecated in 3.30 Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
be75572 to
458952e
Compare
|
@slaren
|
FetchContent_MakeAvailablefor cmake 3.28+FetchContent_Populatefor cmake version less than 3.28FetchContent_Populateis deprecated in 3.30Tested cmake v4.0.0 and cmake v3.22.1
Current install error log:
would be fixed.